package com.xingu.xg;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.oas.annotations.EnableOpenApi;

/**
 * @author luo
 * @date 2022/8/8
 * @description 启动类
 */
@SpringBootApplication//自动配置类
@MapperScan("com.xingu.xg.mapper")//扫描dao层
@ServletComponentScan
@EnableOpenApi //开启swagger3
public class XgJavaV2Application {

    public static void main(String[] args) {
        SpringApplication.run(XgJavaV2Application.class, args);
    }
}
